package com.jinghua.treatment.common.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Created by kriss on 2018/4/24.
 * <p>
 * 封装json 结果
 */
@ApiModel(value = "返回结果对象", description = "结果对象")
public class JSONResult {
    @ApiModelProperty(value = "结果编码", name = "resultCode", example = "10000 表示正常，10001表示异常")
    private String code;
    @ApiModelProperty(value = "结果消息", name = "resultMsg", example = "保存成功")
    private String msg;

    private Object data;

    public JSONResult(String resultCode, String resultMsg, Object data) {
        this.code = resultCode;
        this.msg = resultMsg;
        this.data = data;
    }

    public JSONResult() {

    }

    public JSONResult(String resultCode, String resultMsg) {
        this.code = resultCode;
        this.msg = resultMsg;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
